/**
 * 
 */
package com.p2p.front.dal.model;

import java.io.Serializable;

/**
 * @author hongbo
 *
 */
public class EmailCode implements Serializable {

	private static final long serialVersionUID = 8769984084419775162L;

	private Long id;
	
	private String type;
	
	private String email;
	
	private Long 	expire;
	
	private Integer	status;
	
	private String 	code;
	
	private int sendEmailType;//发送邮件类型 0:注册时发送邮件  1:找回密码时发送邮件
	
	public enum Status{
		INVALID(0),
		VALIDITY(1)
		;
		private int status;
		
		private Status(int status) {
			this.status = status;
		}
		
		public int getStatus() {
			return this.status;
		}
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getExpire() {
		return expire;
	}

	public void setExpire(Long expire) {
		this.expire = expire;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getSendEmailType() {
		return sendEmailType;
	}

	public void setSendEmailType(int sendEmailType) {
		this.sendEmailType = sendEmailType;
	}

}
